package com.tanx.jpa.custom;

import com.querydsl.core.types.FactoryExpression;
import com.querydsl.core.types.Predicate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;


@NoRepositoryBean
public interface CustomQueryDslJpaRepository<T, ID extends Serializable> extends PagingAndSortingRepository<T, ID> {

    Page<T> findAll(FactoryExpression<T> factoryExpression, Predicate predicate, Pageable pageable);

}
